package com.feri.cs.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 3.车辆使用申请表(TCarUse)表实体类
 *
 * @author makejava
 * @since 2023-05-09 16:35:01
 */
@Data
@NoArgsConstructor
@TableName("t_car_use")
public class CarUse {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer uid;

    private Integer cid;

    private Integer days;

    private String reason;

    private String pid;
    //标记位：1.已申请 2.主管审核通过 3.主管审核失败 4.经理审核通过 5.经理审核通过 6.老板审核通过 7.老板审核失败
    private Integer flag;

    private Date utime;

    private Date ctime;

    public CarUse(Integer uid, Integer cid, Integer days, String pid,String reason) {
        this.uid = uid;
        this.cid = cid;
        this.days = days;
        this.pid = pid;
        flag=1;
        utime=new Date();
        ctime=utime;
        this.reason=reason;
    }
}
